package models;

import java.util.*;

import javax.persistence.*;

import play.db.jpa.Model;

@Entity
public class Draft extends Model {

 public Date draftDate;
 @Lob
 public String content;
 public String title;
 @ManyToOne
 public Topic topic;
 @ManyToOne
 public Department department;
 
 /**
	 * 
	 * @author Ahmed 
	 * @params the user who created the idea, and the content of the draft it self
	 */

 public Draft(String title,String content,Topic topic,Department department) {
  this.draftDate = new Date();
  this.title=title;
  this.content = content;
  this.topic=topic;
  this.department=department;
 }
 




}